package com.mioto.ld.communication.websocket.model;

/**
 * @author mioto-qinxj
 * @date 2024/5/16
 * @desc
 */
public enum SendCmdEnum {

    AUTH_SUCCESS(11000,"auth success"),
    AUTH_REQUIRED(11001,"websocket not auth"),
    BAD_REQUEST(11002,"bad request"),
    CONTROL_SUCCESS(11003,"control success"),
    ALERT_NOTIFY(11004,"alert notify"),
    MESSAGE_NOTIFY(11005,"message notify"),
    DEVICE_OFFLINE(11006,"device offline"),
    ;
    /**
     * 消息类型
     */
    private int cmd;
    /**
     * 说明
     */
    private String desc;


    public int cmd() {
        return cmd;
    }

    public String desc() {
        return desc;
    }

    SendCmdEnum(int cmd, String desc) {
        this.cmd = cmd;
        this.desc = desc;
    }
}
